import * as Extend from './extend'
import {ApiResult} from "./ajax";

export function ajaxInvoke(url: string, ...args): Promise<ApiResult> {
    //@ts-ignore
    return Extend.ajax!.func({
        method: 'invoke',
        url: url,
        data: args
    }) as any
}